/**
 * @author [siwi]
 * @email [siwi@siwi.me]
 * @create date 2018-03-10 02:03:17
 * @modify date 2018-03-10 02:03:17
 * @desc [redis连接]
*/
const redis = require('redis');
const bluebird = require('bluebird')
bluebird.promisifyAll(redis.RedisClient.prototype);
bluebird.promisifyAll(redis.Multi.prototype);
class Redis {
    constructor() {
    }
    async createClient (options) {
        const client = options? redis.createClient(options): redis.createClient()
        return client
    }
}
module.exports = new Redis()